New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1350] Escape chars in DotFileFormatSimple #1360
[#1350] Escape chars in DotFileFormatSimple #1360
Conversation
- introduce test which checks escaping for DotFileFormatSimple - reformat string declarations - remove DotFormat param from checkWriteOutput(). We dont need that since we escape chars for both formats fixes dbs-leipzig#1350
- remove spurious semicolon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTML encoding fits not here. Try to open a dot file with gephi and you will see that it can not interpret it as a quote. The right way is to encode each " with a " ... having this, gephi successfully imports the data and parses the escaped quote to a quote in the data explorer.
But then the question arises whether we should cater for a gephi specific problem. If i create a png using graphviz, the html escaped characters are properly rendered. Its just gephi who does not understand these sequences and takes all of the chars "as is" (at least thats what i'm seeing in the data view). I think we need to decide whether the simple format will primarily be used to render graphs in gephi or to render simpler graphics with graphviz. |
we escape chars for both formats
fixes #1350